package com.boang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.MediaType;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;

import java.util.HashMap;

@SpringBootApplication
public class SpringcloudWcApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudWcApplication.class, args);

        WebClient webClient = WebClient.create();
        HashMap<String, String> hashMap = new HashMap<>();
        Mono<String> mono = webClient.get()
                .uri("")
                .accept(MediaType.APPLICATION_JSON)
                .header("AU")
                .retrieve()
                .bodyToMono(String.class);
    }

}
